package com.ian.departmentmanager.mvc;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class IndexController {

	@RequestMapping(value = "/index.htm", method = RequestMethod.GET)
	protected ModelAndView index() {
		ModelAndView mav = new ModelAndView("index");
		return mav;
	}

	@RequestMapping(value = "/top.htm", method = RequestMethod.GET)
	protected ModelAndView top() {
		ModelAndView mav = new ModelAndView("top");
		return mav;
	}

	@RequestMapping(value = "/left.htm", method = RequestMethod.GET)
	protected ModelAndView left() {
		ModelAndView mav = new ModelAndView("left");
		return mav;
	}
}
